package utils;

import org.next.tesigiulia.models.Area;
import org.next.tesigiulia.utils.Vessel;

/**
 * Created with IntelliJ IDEA.
 * User: gianluca
 * Date: 18/02/13
 * Time: 15.34
 * To change this template use File | Settings | File Templates.
 */
public class Helper {
    public static Area getAnArea() {
        Area area = new Area();
        area.setAreaName(DistinctGeneratedValue.getUniqueString("Area "));
        area.setRaggio(30);
        area.setLongitudine(DistinctGeneratedValue.getUniqueDouble());
        area.setLatitudine(DistinctGeneratedValue.getUniqueDouble());
        return area;
    }

    public static Vessel getAVessel() {
        Vessel vessel = new Vessel();
        vessel.setName(DistinctGeneratedValue.getUniqueString("Nave "));
        vessel.setMmsi(DistinctGeneratedValue.getUniqueString(""));
        vessel.setLat(DistinctGeneratedValue.getUniqueDouble());
        vessel.setLon(DistinctGeneratedValue.getUniqueDouble());
        return vessel;
    }
}
